package com.xingkeduo.business.user.feign;

import com.xingkeduo.pojo.dto.OrderUserResponseDto;
import com.xingkeduo.pojo.utils.ResponseUtils;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(value = "business-order")
public interface OrderService {


    //根据用户id获取服务信息（服务次数、距离最后一次服务的天数）
    @GetMapping("/api/order/query/services")
    ResponseUtils queryServices(@RequestParam(value = "userId") String userId, @RequestParam(value = "sign") String sign);


    /**
     * 查询用户最近服务订单信息
     *
     * @param userIds:
     * @return : com.xingkeduo.pojo.utils.ResponseUtils
     * @author : gaozifeng
     * @date : 2019/7/16 10:17
     */
    @GetMapping("/api/order/user/pre")
    ResponseUtils<OrderUserResponseDto> queryServices(@RequestParam(value = "userIds") String userIds);


}
